package com.huluobo.a2109kotlinshopping.order

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.huluobo.a2109kotlinshopping.R
import com.huluobo.a2109kotlinshopping.utils.ImageUtils

/**
 *  Created by LC on 2024/1/22.
 */
class OrderPayAdapter(list: MutableList<OrderPayBean>) :
    BaseQuickAdapter<OrderPayBean, BaseViewHolder>(R.layout.item_order_pay, list) {
    override fun convert(helper: BaseViewHolder, item: OrderPayBean) {
        helper.setText(R.id.order_pay_item_tv_name, item.goods_desc)
        helper.setText(R.id.order_pay_item_tv_num, "数量:${item.count}")
        helper.setText(R.id.order_pay_item_tv_price, "价格:￥${item.goods_default_price}.00元")
        ImageUtils.loadImage(context, item.goods_default_icon, helper.getView(R.id.order_pay_item_iv_icon))
    }
}